package com.lagou.session;

import java.util.List;

public interface SqlSession {

    public <T> List<T> selectList(String statementId, Object...params) throws Exception;

    public <T> T selectOne(String statementId, Object...params) throws Exception;

    public <T> int insert(String statementId, Object...params) throws Exception;

    public <T> int delete(String statementId, Object...params)  throws Exception;

    public <T> int update(String statementId, Object...params)  throws Exception;

    public void close();

    public <T> T getMaper(Class<?> mapperClass) throws Exception;

}
